﻿using SqlSugar;
using System.Collections.Generic;

namespace ByteSite.Entitys
{
    public class QuartzTask : BaseEntity
    {

        /// <summary>
        /// 唯一ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true,IsIdentity = true)]
        public System.Int32? id { get; set; }
        /// <summary>
        /// 任务名称
        /// </summary>
        public System.String name { get; set; }
        /// <summary>
        /// 组别
        /// </summary>
        public System.String group { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public System.String intro { get; set; }

        /// <summary>
        /// 任务类型 dll/url
        /// </summary>
        public System.String type { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        [Newtonsoft.Json.JsonConverter(typeof(Common.TcDateTimeConverter))]
        public System.DateTime? start_time { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        [Newtonsoft.Json.JsonConverter(typeof(Common.TcDateTimeConverter))]
        public System.DateTime? end_time { get; set; }

        /// <summary>
        /// Quertz定时规则
        /// </summary>
        public System.String cron { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public System.Int32? status { get; set; }

        /// <summary>
        /// 通知结果 0不通知 1通知异常 2通知所有
        /// </summary>
        public System.Int32? notice_result { get; set; }



        #region dll

        /// <summary>
        /// 命名空间
        /// </summary>
        public System.String assembly_name { get; set; }

        /// <summary>
        /// 具体的方法名称
        /// </summary>
        public System.String assembly_classname { get; set; }

        /// <summary>
        /// 参数（固定值）
        /// </summary>
        public System.String assembly_params { get; set; }

        #endregion

        #region url

        /// <summary>
        /// 请求地址
        /// </summary>
        public System.String url { get; set; }

        /// <summary>
        /// 请求类型Get/Post
        /// </summary>
        public System.String request_type { get; set; }

        /// <summary>
        /// 请求头 cookies/授权认证等
        /// </summary>
        public System.String request_header { get; set; }

        /// <summary>
        /// 请求参数
        /// </summary>
        public System.String request_params { get; set; }

        #endregion
    }
}
